import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import audio from './util/audio';


const bus = new Vue();
// 将音频挂载在全局上
Vue.prototype.$audio = audio;
// 挂载一个 vue实例在原型对象上，方便后续项目中做非父子组件通讯
Vue.prototype.$bus = bus;



// 按需导入
// import { Button,Icon } from 'vant';
// Vue.use(Button).use(Icon);



// 一次性导入, 还要修改 babel.config.js 内按需引入的配置
import Vant from 'vant';
import 'vant/lib/index.css';
import './assets/myVantStyle.css'

Vue.use(Vant);

Vue.config.productionTip = false


new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
